<article>
    <div id="breadcrumb">
        <ul>
            <li><a href="#">Trang chủ</a></li>
            <li><span>
             <?php if (isset($tbl_products[0]['cate_name'])) {
                 echo $tbl_products[0]['cate_name'];
             } else {
                 echo "Chưa có sản phẩm nào";
             } ?></span></li>
        </ul>
    </div><!--End #breadcrumb-->

    <div class="content">
        <?php $i = 1; foreach ($tbl_products as $tbl_product) : ?>
        <?php if($i%4 != 0 ){ echo '<div class="pro-item">' ;}else { echo '<div class="pro-item last">' ;} ?>
            <div class="thumb">
                <a href="#"><img src="<?php echo $tbl_product['img1']; ?>" alt="Tên sản phẩm" title="Tên sản phẩm"></a>
            </div>
            <div class="detail">
                <h3 class="name"><a href="<?php echo base_url() . mb_strtolower(url_title(removesign($tbl_product['title']))) . '.html'; ?>"><?php echo $tbl_product['title']; ?></a></h3>
                <span><?php echo number_format($tbl_product['price']); ?> VNĐ</span><br>
                <a class="view-more" href="<?php echo base_url() . mb_strtolower(url_title(removesign($tbl_product['title']))) . '.html'; ?>">Xem chi tiết</a>
            </div>
        </div><!--End .pro-item-->
        <?php $i++; endforeach ?>
    </div>
</article>
<ul class="pagination">
    <?php echo $pagination; ?>
</ul>

